package com.fare.taluo.auth.dao.abstr;

import javax.annotation.Resource;

import org.springframework.context.annotation.Scope;
import org.springframework.transaction.annotation.Transactional;

import com.fare.taluo.auth.dao.BaseHibernateDao;
import com.fare.taluo.auth.dao.BaseJdbcDao;


/**
 * @author vssion
 * Aug 28, 2010
 */
@Transactional
@Scope("singleton")
public abstract class AbstractDao{

	@Resource(name="hibernateDao")
	private BaseHibernateDao hibernateDao;

	@Resource(name="jdbcDao")
	private BaseJdbcDao jdbcDao;
	
/*	@Resource(name="hibernateTemplate")
	private HibernateTemplate hibernateTemplate;*/
	
/*	@Resource(name="oscacheFactory")
	private OscacheFactory oscacheFactory;*/
	
	public BaseHibernateDao getHibernateDao() {
		return hibernateDao;
	}

	public void setHibernateDao(BaseHibernateDao hibernateDao) {
		this.hibernateDao = hibernateDao;
	}
	
	public BaseJdbcDao getJdbcDao() {
		return jdbcDao;
	}
	
	public void setJdbcDao(BaseJdbcDao jdbcDao) {
		this.jdbcDao = jdbcDao;
	}

/*	public HibernateTemplate getHibernateTemplate() {
		return hibernateTemplate;
	}

	public void setHibernateTemplate(HibernateTemplate hibernateTemplate) {
		this.hibernateTemplate = hibernateTemplate;
	}*/
	
/*	public OscacheFactory getOscacheFactory() {
		return oscacheFactory;
	}

	public void setOscacheFactory(OscacheFactory oscacheFactory) {
		this.oscacheFactory = oscacheFactory;
	}*/
}
